<?php
/**
 * Created by PhpStorm.
 * User: skytop
 * Date: 16-9-7
 * Time: 下午7:10
 */

namespace Home\Model;

use Think\Model\ViewModel;
class BlogViewModel extends ViewModel
{
    protected $viewFields=array(
        'blog'=>array(
            'id','title','time','click',
            '_type'=>'LEFT'
        ),
        'cate'=>array(
            'name','_on'=>'blog.cid=cate.id'
        ),
    );
}